<template>
  <div class="">
    <input @change="fileChange($event)" type="file" />
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
const d = reactive({
  name: 'demo',
})

const fileChange = (e: Event) => {
  const files = (e.target as HTMLInputElement).files
  console.error(files?.[0])
}

const init = () => {
  return
}
init()
</script>

<style lang="scss"></style>
